import request from '@/utils/request'

const commoditiesApi = {
  lists: '/api/v2/commodities'
}

export function getCommoditiesLists (paramter) {
  return request({
    url: commoditiesApi.lists,
    method: 'get',
    params: paramter
  })
}

export function saveCommoditiesLists (id, data) {
  return request({
    url: commoditiesApi.lists + '/' + id,
    method: 'put',
    data: data
  })
}
